﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Automobile.service.Model;
using Automobile.service.BLL;

namespace Automobile.service.UI.Handler
{
    /// <summary>
    /// HandlerAddWareHose 的摘要说明
    /// </summary>
    public class HandlerAddWareHose : IHttpHandler
    {
        WareHoseBLL bll = new WareHoseBLL();

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            WareHose w = new WareHose();
            w.WareHose_Name = context.Request["WareHose_Name"];
            w.WareHose_People = context.Request["WareHose_People"];
            w.WareHose_Phone = context.Request["WareHose_Phone"];
            w.WareHose_Address = context.Request["WareHose_Address"];
            w.WareHose_Remark = context.Request["WareHose_Remark"];
            context.Response.Write(bll.AddWareHose(w));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}